<?php

namespace service\vo\user;
/**
 * 用户收藏
 */
class UserCollect
{
    //id
    private int $id;
    //用户id
    private int $userId;
    //题目id
    private int $subjectId;
    //添加时间
    private string $addTime;

    /**
     * @return int
     */
    public function getId(): int
    {
        return $this->id;
    }

    /**
     * @param int $id
     */
    public function setId(int $id): void
    {
        $this->id = $id;
    }

    /**
     * @return int
     */
    public function getUserId(): int
    {
        return $this->userId;
    }

    /**
     * @param int $userId
     */
    public function setUserId(int $userId): void
    {
        $this->userId = $userId;
    }

    /**
     * @return int
     */
    public function getSubjectId(): int
    {
        return $this->subjectId;
    }

    /**
     * @param int $subjectId
     */
    public function setSubjectId(int $subjectId): void
    {
        $this->subjectId = $subjectId;
    }

    /**
     * @return string
     */
    public function getAddTime(): string
    {
        return $this->addTime;
    }

    /**
     * @param string $addTime
     */
    public function setAddTime(string $addTime): void
    {
        $this->addTime = $addTime;
    }
}